

/**
 * @author 帅小伙
 * @date 2022/1/2
 * @description
 */
public class Worker01 {




    public static void main(String[] args) throws Exception {

        Consumer1 consumer = new Consumer1();

        for (int i = 0; i < 2; i++) {

            new Thread(()->{
                try {
                    consumer.consume();
                } catch (Exception e) {
                    e.printStackTrace();
                }
            },"ah"+i).start();
        }
    }
}

